﻿@model WebAuthTest.Models.RoleViewModel
@{
    ViewBag.Title = "创建角色";
}

<h2>创建角色</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    <div class="form-horizontal">
        <h4>创建角色</h4>
        <hr/>
        @Html.ValidationSummary(true)
        <div class="form-group">
            @Html.LabelFor(m => m.Name, new {@class = "control-label col-md-2"})
            <div class="col-md-10">
                @Html.TextBoxFor(m => m.Name, new {@class = "form-control"})
                @Html.ValidationMessageFor(m => m.Name)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="创建角色" class="btn btn-default"/>
            </div>
        </div>
    </div>
    
}

<div>
    @Html.ActionLink("返回列表", "Index")
</div>

@section Scripts
{
    @Scripts.Render("~/bundles/jqueryval")
}

